package cn.jdy.plugins.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import cn.jdy.common.bo.BaseEntry;

/**
 * 行政区域
 * Created by Tianyi on 2015/6/6.
 */
@Entity
public class District extends BaseEntry {
    @Id
    @Column(length = 50)
    private String id;
    @Column(length = 50, nullable = false)
    private String name;
    @Column(length = 1, nullable = false)
    private Integer level;
    @Column(length = 6, nullable = false)
    private String parent;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }
}
